package com.wzdigit.wms.basic.mapper.core.oqc;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.dtos.oqc.OqcInspDtlDto;
import com.wzdigit.wms.basic.domain.oqc.OqcInspDtl;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@MyBatisRepository
public interface OqcInspDtlMapper extends BaseMapper<OqcInspDtl> {
	
	List<OqcInspDtlDto> selectOqcTaskData(@Param("inspNo")String inspNo);

	List<OqcInspDtl> selectByGoodsSNList(@Param("snList")List<String> snList);
	
    List<String> selectSnListByOqcInspIdAndStatus(@Param("oqcInspId") Integer oqcInspId, @Param("oqcdtlStatusUnHandle") Integer oqcdtlStatusUnHandle);

    OqcInspDtl selectBySn(@Param("goodsSn") String goodsSn);

    int selectCountByOqcInspId(@Param("id") Integer id);
    
    int updateStatusById(@Param("oqcInspDtlId") Integer oqcInspDtlId, @Param("status") Integer status);

    List<OqcInspDtl> selectBySnList(@Param("snList") List<String> snList);

    Integer updateByOqccInspDtlIdList(@Param("modifyUser") String modifyUser, @Param("modifyTime") Date modifyTime, @Param("unHandleCode") int unHandleCode, @Param("oqcInspDtlIds") List<Integer> oqcInspDtlIds);
}
